﻿using System.Collections.Generic;

namespace OestsCommon.Model
{

    public class OperateLog
    {
        /// <summary>
        /// 任务id
        /// </summary>
        public int TaskId { get; set; }

        /// <summary>
        /// 实训的岗位 0表示无岗位
        /// </summary>
        public int PostId { get; set; }

        /// <summary>
        /// 分值
        /// </summary>
        public int Score { get; set; }

        /// <summary>
        /// 操作记录 任务id 对应任务的记录
        /// </summary>
        public List<string> OperationLog { get; set; }

        public static TrainData ToObject(string strjson)
        {
            return LitJson.JsonMapper.ToObject<TrainData>(strjson);
        }

        public string ToJson()
        {
            return LitJson.JsonMapper.ToJson(this);
        }
    }
}
